<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-moduleid" class="control-label col-xs-12 col-sm-2">{:__('Moduleid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-moduleid" class="form-control selectpickernew" name="row[moduleid]">
                <option value="">请选择模块</option>
                {foreach name="moduleList" item="vo"}
                <option value="{$vo.itemid}" {if $vo.itemid eq $row.moduleid}selected="selected"{/if}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-pid" class="form-control selectpickernew" name="row[pid]" currentid="{$row.pid}">
                {foreach name="parentList" item="vo"}
                <option data-type="{$vo.type}" value="{$key}" {if $row.pid eq $key}selected="selected"{/if}>{$vo.name}</option>
                {/foreach}
            </select>
            <input type="hidden" id="c-beforepid" name="row[beforepid]" value="{$row.pid}"  />
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-diyname" class="control-label col-xs-12 col-sm-2">{:__('Diyname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-diyname" data-rule="" class="form-control" name="row[diyname]" type="text" value="{$row.diyname}" />
        </div>
    </div> 
    
    <div class="form-group">
        <label for="c-linkurl" class="control-label col-xs-12 col-sm-2">链接:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-linkurl" class="form-control" name="row[linkurl]" type="text" value="{$row.linkurl}" />
        </div>
    </div>
    
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
              <label for="row[status]-normal">
                <input id="row[status]-normal" {if $row.status eq 'normal'}checked="checked"{/if} name="row[status]" type="radio" value="normal" />正常</label>
              <label for="row[status]-hidden">
                <input id="row[status]-hidden" {if $row.status eq 'hidden'}checked="checked"{/if} name="row[status]" type="radio" value="hidden" />隐藏</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control summernote" name="row[description]">{$row.description}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
